package com.woniu.vo;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description:
 * @Author: woniu
 * @date: 2024/1/19 11:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PublicCustomProgramMessageVo对象", description="微信公众号发送小程序消息类")
public class PublicCustomProgramMessageVo {

    /**
     * 用户openid
     */
    private String touser;

    private String msgtype = "miniprogrampage";

    /**
     * 发送数据
     */
    private MiniprogrampageData miniprogrampage;

    @Data
    public static class MiniprogrampageData{

        /**
         * 标题
         */
        private String title;

        /**
         * 小程序appid
         */
        private String appid;

        /**
         * 落地页
         */
        private String pagepath;

        /**
         * 媒体id
         */
        private String thumb_media_id;

    }
}
